package com.tianya.common.redis.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@Getter
@Setter
@ConfigurationProperties(prefix = "tianya.cache-manager")
public class CacheManagerProperties {
    private List<CacheConfig> configs;

    @Getter
    @Setter
    public static class CacheConfig {

        /**
         * cache key
         */
        private String key;

        /**
         * 国企时间， sec
         */
        private long second = 60;
    }
}
